package edu.sctu.xiangkun.day201505.day20150526.textthree;

/**
 * Created by lenovo on 2015/5/25.
 */
public class Call {
    public static void main(String[] args) {
        StringDemo t1 = new StringDemo();
        System.out.println("t1.stringLength(\"hello world\")= "+ t1.stringLength("hello world"));

        System.out.println("str.stringLength(\"hello world\")= "+ t1.stringLengthTwo());

        System.out.println("t1.stringTrim(\" hello reader \")= "+ t1.stringTrim(" hello reader "));

        System.out.println("str.stringStartsWith(\"o\",4)= "+t1.stringStartsWith());

        System.out.println("t1.stringEndsWith(\"hello world\")= "+t1.stringEndsWith("hello world"));

        System.out.println("t1.stringEquals(\"hello reader\")= "+t1.stringEquals("hello reader"));

        System.out.println("t1.stringEqualsIgnoreCase(\"Hello Reader\")= "+t1.stringEqualsIgnoreCase("Hello Reader"));

        System.out.println("t1.stringToLowerCase(\"Hello World\")= "+t1.stringToLowerCase("Hello World"));

        System.out.println("t1.stringToUpperCase(\"Hello World\")= "+t1.stringToUpperCase("Hello World"));

        System.out.println("str.index(\"e\",0)= "+t1.stringIndex("hello world"));

        System.out.println("str.stringCharAt(3)= "+t1.stringCharAt("hello world"));

        System.out.println("t1.stringReplaceAll(\"hello world\")= "+t1.stringReplaceAll("hello world"));
    }
}
